<?xml version='1.0' encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <link href="cpip.css" rel="stylesheet" type="text/css" />
    <title>File: /Users/paulross/dev/linux/linux-3.13/include/uapi/linux/sched.h</title>
  </head>
  <body>
    <h1>File: /Users/paulross/dev/linux/linux-3.13/include/uapi/linux/sched.h</h1>
    <p>Green shading in the line number column
means the source is part of the translation unit, red means it is conditionally excluded.
Highlighted line numbers link to the translation unit page. Highlighted macros link to
the macro page.</p>
    <pre><a name="1" /><span class="True">       1:</span> <span class="f">#</span><span class="n">ifndef</span> <a href="cpu.c_macros_noref.html#_X1VBUElfTElOVVhfU0NIRURfSF8w"><span class="b">_UAPI_LINUX_SCHED_H</span></a>
<a name="2" /><span class="True">       2:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_X1VBUElfTElOVVhfU0NIRURfSF8w"><span class="b">_UAPI_LINUX_SCHED_H</span></a>
<a name="3" /><span class="True">       3:</span> 
<a name="4" /><span class="True">       4:</span> <span class="k">/*</span>
<a name="5" /><span class="True">       5:</span> <span class="k"> * cloning flags:</span>
<a name="6" /><span class="True">       6:</span> <span class="k"> */</span>
<a name="7" /><span class="True">       7:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q1NJR05BTF8w"><span class="b">CSIGNAL</span></a>        <span class="c">0x000000ff</span>    <span class="k">/* signal mask to be sent at exit */</span>
<a name="8" /><span class="True">       8:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfVk1fMA__"><span class="b">CLONE_VM</span></a>    <span class="c">0x00000100</span>    <span class="k">/* set if VM shared between processes */</span>
<a name="9" /><span class="True">       9:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfRlNfMA__"><span class="b">CLONE_FS</span></a>    <span class="c">0x00000200</span>    <span class="k">/* set if fs info shared between processes */</span>
<a name="10" /><span class="True">      10:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfRklMRVNfMA__"><span class="b">CLONE_FILES</span></a>    <span class="c">0x00000400</span>    <span class="k">/* set if open files shared between processes */</span>
<a name="11" /><span class="True">      11:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfU0lHSEFORF8w"><span class="b">CLONE_SIGHAND</span></a>    <span class="c">0x00000800</span>    <span class="k">/* set if signal handlers and blocked signals shared */</span>
<a name="12" /><span class="True">      12:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfUFRSQUNFXzA_"><span class="b">CLONE_PTRACE</span></a>    <span class="c">0x00002000</span>    <span class="k">/* set if we want to let tracing continue on the child too */</span>
<a name="13" /><span class="True">      13:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfVkZPUktfMA__"><span class="b">CLONE_VFORK</span></a>    <span class="c">0x00004000</span>    <span class="k">/* set if the parent wants the child to wake it up on mm_release */</span>
<a name="14" /><span class="True">      14:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfUEFSRU5UXzA_"><span class="b">CLONE_PARENT</span></a>    <span class="c">0x00008000</span>    <span class="k">/* set if we want to have the same parent as the cloner */</span>
<a name="15" /><span class="True">      15:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfVEhSRUFEXzA_"><span class="b">CLONE_THREAD</span></a>    <span class="c">0x00010000</span>    <span class="k">/* Same thread group? */</span>
<a name="16" /><span class="True">      16:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfTkVXTlNfMA__"><span class="b">CLONE_NEWNS</span></a>    <span class="c">0x00020000</span>    <span class="k">/* New namespace group? */</span>
<a name="17" /><span class="True">      17:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfU1lTVlNFTV8w"><span class="b">CLONE_SYSVSEM</span></a>    <span class="c">0x00040000</span>    <span class="k">/* share system V SEM_UNDO semantics */</span>
<a name="18" /><span class="True">      18:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfU0VUVExTXzA_"><span class="b">CLONE_SETTLS</span></a>    <span class="c">0x00080000</span>    <span class="k">/* create a new TLS for the child */</span>
<a name="19" /><span class="True">      19:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfUEFSRU5UX1NFVFRJRF8w"><span class="b">CLONE_PARENT_SETTID</span></a>    <span class="c">0x00100000</span>    <span class="k">/* set the TID in the parent */</span>
<a name="20" /><span class="True">      20:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfQ0hJTERfQ0xFQVJUSURfMA__"><span class="b">CLONE_CHILD_CLEARTID</span></a>    <span class="c">0x00200000</span>    <span class="k">/* clear the TID in the child */</span>
<a name="21" /><span class="True">      21:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfREVUQUNIRURfMA__"><span class="b">CLONE_DETACHED</span></a>        <span class="c">0x00400000</span>    <span class="k">/* Unused, ignored */</span>
<a name="22" /><span class="True">      22:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfVU5UUkFDRURfMA__"><span class="b">CLONE_UNTRACED</span></a>        <span class="c">0x00800000</span>    <span class="k">/* set if the tracing process can&apos;t force CLONE_PTRACE on this clone */</span>
<a name="23" /><span class="True">      23:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfQ0hJTERfU0VUVElEXzA_"><span class="b">CLONE_CHILD_SETTID</span></a>    <span class="c">0x01000000</span>    <span class="k">/* set the TID in the child */</span>
<a name="24" /><span class="True">      24:</span> <span class="k">/* 0x02000000 was previously the unused CLONE_STOPPED (Start in stopped state)</span>
<a name="25" /><span class="True">      25:</span> <span class="k">   and is now available for re-use. */</span>
<a name="26" /><span class="True">      26:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfTkVXVVRTXzA_"><span class="b">CLONE_NEWUTS</span></a>        <span class="c">0x04000000</span>    <span class="k">/* New utsname group? */</span>
<a name="27" /><span class="True">      27:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfTkVXSVBDXzA_"><span class="b">CLONE_NEWIPC</span></a>        <span class="c">0x08000000</span>    <span class="k">/* New ipcs */</span>
<a name="28" /><span class="True">      28:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfTkVXVVNFUl8w"><span class="b">CLONE_NEWUSER</span></a>        <span class="c">0x10000000</span>    <span class="k">/* New user namespace */</span>
<a name="29" /><span class="True">      29:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfTkVXUElEXzA_"><span class="b">CLONE_NEWPID</span></a>        <span class="c">0x20000000</span>    <span class="k">/* New pid namespace */</span>
<a name="30" /><span class="True">      30:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfTkVXTkVUXzA_"><span class="b">CLONE_NEWNET</span></a>        <span class="c">0x40000000</span>    <span class="k">/* New network namespace */</span>
<a name="31" /><span class="True">      31:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_Q0xPTkVfSU9fMA__"><span class="b">CLONE_IO</span></a>        <span class="c">0x80000000</span>    <span class="k">/* Clone io context */</span>
<a name="32" /><span class="True">      32:</span> 
<a name="33" /><span class="True">      33:</span> <span class="k">/*</span>
<a name="34" /><span class="True">      34:</span> <span class="k"> * Scheduling policies</span>
<a name="35" /><span class="True">      35:</span> <span class="k"> */</span>
<a name="36" /><span class="True">      36:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_U0NIRURfTk9STUFMXzA_"><span class="b">SCHED_NORMAL</span></a>        <span class="c">0</span>
<a name="37" /><span class="True">      37:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_U0NIRURfRklGT18w"><span class="b">SCHED_FIFO</span></a>        <span class="c">1</span>
<a name="38" /><span class="True">      38:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_U0NIRURfUlJfMA__"><span class="b">SCHED_RR</span></a>        <span class="c">2</span>
<a name="39" /><span class="True">      39:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_U0NIRURfQkFUQ0hfMA__"><span class="b">SCHED_BATCH</span></a>        <span class="c">3</span>
<a name="40" /><span class="True">      40:</span> <span class="k">/* SCHED_ISO: reserved but not implemented yet */</span>
<a name="41" /><span class="True">      41:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_U0NIRURfSURMRV8w"><span class="b">SCHED_IDLE</span></a>        <span class="c">5</span>
<a name="42" /><span class="True">      42:</span> <span class="k">/* Can be ORed in to make sure the process is reverted back to SCHED_NORMAL on fork */</span>
<a name="43" /><span class="True">      43:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_U0NIRURfUkVTRVRfT05fRk9SS18w"><span class="b">SCHED_RESET_ON_FORK</span></a>     <span class="c">0x40000000</span>
<a name="44" /><span class="True">      44:</span> 
<a name="45" /><span class="True">      45:</span> 
<a name="46" /><span class="True">      46:</span> <span class="f">#</span><span class="n">endif</span> <span class="k">/* _UAPI_LINUX_SCHED_H */</span>
<a name="47" /><span class="True">      47:</span> </pre>
  </body>
</html>
